package com.zk.atm.vo;

import java.util.Date;
import java.util.HashSet;
import java.util.Set;

/**
 * AtmpDeviceType entity.
 * 
 * @author MyEclipse Persistence Tools
 */

public class AtmpDeviceType extends BaseVo implements java.io.Serializable {

	// Fields
	private String type_id;
	private String type_code;
	private String type_name;
	private Date time_mark;
	private String type_remark;
	//private Set atmpDevices = new HashSet(0);
	//private Set atmpDeviceTypeChildrens = new HashSet(0);

	// Constructors
	/** default constructor */
	public AtmpDeviceType() {
	}

	public AtmpDeviceType(String type_id, String type_code, String type_name,
			Date time_mark, String type_remark) {
		super();
		this.type_id = type_id;
		this.type_code = type_code;
		this.type_name = type_name;
		this.time_mark = time_mark;
		this.type_remark = type_remark;
	}

	public String getType_id() {
		return type_id;
	}

	public void setType_id(String type_id) {
		this.type_id = type_id;
	}

	public String getType_code() {
		return type_code;
	}

	public void setType_code(String type_code) {
		this.type_code = type_code;
	}

	public String getType_name() {
		return type_name;
	}

	public void setType_name(String type_name) {
		this.type_name = type_name;
	}

	public Date getTime_mark() {
		return time_mark;
	}

	public void setTime_mark(Date time_mark) {
		this.time_mark = time_mark;
	}

	public String getType_remark() {
		return type_remark;
	}

	public void setType_remark(String type_remark) {
		this.type_remark = type_remark;
	}
	
	public String toString(){
		return "[type_id ="+ type_id
		+",type_code ="+ type_code
		+",type_name ="+ type_name
		+",time_mark ="+ getTimeMarkByDate(time_mark)
		+",type_remark ="+ type_remark+"]";
	}
	
	public String getTimeMarkByDate(Date time_mark1){
		String date_value="";
		try {
			if(time_mark1==null){
				return date_value;
			}else{
				date_value= time_mark1.toLocaleString();
			}
		} catch (RuntimeException e) {
			e.printStackTrace();
		}
		return date_value;
	}

}